package day03;

import java.awt.*;

public class ad extends Frame {

    int x = 1960;
    public void start() throws InterruptedException {
        setSize(1960, 70);
        setUndecorated(true);
        setBackground(Color.BLACK);
        setAlwaysOnTop(true);
        setBackground(Color.BLACK);
        setVisible(true);
        for(;;) {
            setLocation(x,0);
            x-=2;
            Thread.sleep(10);
        }
    }
    public void paint(Graphics g){
        g.setFont(new Font("a", 3, 55));
        g.setColor(Color.RED);
        g.drawString("郭老板，快点带饭去，不去，你就再也见不到你的电脑了，嘿嘿--------郭老板，快点带饭去，不去，你就再也见不到你的电脑了，嘿嘿",x ,50);
    }
}
